<include file="public@header" />
<head>
		<meta charset="utf-8" />
		<title>济南恭德林园落葬服务单</title>
	</head>

<style id="style1">
	table{border-collapse: collapse;table-layout:fixed;}
	table tr{height: 34pt;text-align: center;font-size: 16px;}

</style>

<script type="text/javascript" src="__STATIC__/js/lodop/LodopFuncs.js?v={:time()}"></script>
<body>
	<div id="lz" >
		<table border=1 width="100%" cellspacing="0" cellpadding="0" style="border-collapse:collapse" bordercolor="#000000">
			<tr>
				<td rowspan="3"><font   >持<br>证<br>人</font></td>
				<td colspan="2" rowspan="3">{$result['buyer_name']}</td>
				<td rowspan="3"><font >墓<br><br>位</font></td>
				<td rowspan="2" style="width: 60pt;"><font >具体位置</font></td>
				<td rowspan="2" colspan="3"><font >{$result.tomb_region}{$result.tomb_address}</font></td>
				<td rowspan="3"><font >安<br>葬<br>人</font></td>
				<td colspan="3">{$burid[0]}</td>
			</tr>
			<tr>
				<td colspan="3">{$burid[1]}</td>
			</tr>
			<tr>
				<td>墓位编号</td>
				<td colspan="3">{$result.tomb_num}</td>
				<td colspan="3">{$burid[2]}</td>
			</tr>
			<tr>
				<td rowspan="2"><font  >落<br><br>葬</font></td>
				<td >日期</td>
				<td  colspan="2">{$list['buried_date']}</td>
				<td  colspan="4">家庭联系电话</td>
				<td  >火化单</td>
				<td  ><font>死亡<br>证明</font></td>
				<td  ><font>碑文<br>情况</font></td>
				<td  ></td>
			</tr>
			<tr>
				<td  >时间</td>
				<td  colspan="2">{$list['buried_time']}</td>
				<td  colspan="4">{$list['dealer_phone']}</td>
				<td  ></td>
				<td  ></td>
				<td  ></td>
				<td  ></td>
			</tr>
			<tr>
				<td rowspan="2"><font style=" " >交单<br>时间</font></td>
				<td rowspan="2"colspan="3">{$list['add_time']}</td>
				<td rowspan="2"colspan="2">接单人</td>
				<td rowspan="2"colspan="2">{$list['user_nickname']}</td>
				<td colspan="3">墓穴</td>
				<td >墓穴状态</td>
			</tr>
			<tr>
				<td colspan="3">{$result.tomb_regulation_name}</td>
				<td>{$result.col_status_name}</td>
			</tr>
		</table>
	</div>


		<div class="form-actions" id="button_form" style="width: 241mm;">
			<div class="btn btn-primary  " onclick="prn1_preview()">打印结算单</div>
		</div>


</body>
</html>

<script language="javascript" type="text/javascript">
	var LODOP; //声明为全局变量
	function prn1_preview() {
		LODOP=getLodop();
		LODOP.PRINT_INITA("0mm","0mm","244.74mm","275.17mm","销售结算单");
		LODOP.SET_PRINT_PAGESIZE(0,0,0,"24.13*13.97-打印单据");

		LODOP.PRINT_INITA(0,0,1035,815,"");
		LODOP.SET_PRINT_MODE("PRINT_NOCOLLATE",1);
		LODOP.ADD_PRINT_TEXT(25,270,330,44,"济南恭德林园落葬服务单");
		LODOP.SET_PRINT_STYLEA(0,"FontName","隶书");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",20);
		LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
		LODOP.ADD_PRINT_TEXT(80,85,167,28,"2020年08月28日");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(84,635,41,25,"NO:");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		LODOP.SET_PRINT_STYLEA(0,"FontColor","#FF0000");
		LODOP.ADD_PRINT_TEXT(84,681,115,25,"2020082601");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",12);

		var strStyle="<style>"+document.getElementById("style1").innerHTML+"</style>";
		LODOP.ADD_PRINT_HTM(121,22,"87.981%","99%",strStyle+document.getElementById("lz").innerHTML);

		LODOP.ADD_PRINT_TEXT(464,42,125,31,"注册人签字：");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(466,278,157,31,"落葬组负责人签字：");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(465,566,92,31,"经办人：");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(468,637,120,31,"新加文本57");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",12);

		LODOP.PRINT_DESIGN();
//        LODOP.PREVIEW();
	}; 
</script>

<script type="text/javascript">

	function myBlankDesign() {
		LODOP=getLodop();

		LODOP.ADD_PRINT_HTM(121,22,"87.981%","62.491%","(超文本5的HTML代码内容)");
		LODOP.ADD_PRINT_TEXT(464,42,125,31,"注册人签字：");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(466,278,157,31,"落葬组负责人签字：");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(465,566,92,31,"经办人：");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(468,637,120,31,"新加文本57");
		LODOP.SET_PRINT_STYLEA(0,"FontSize",12);

	};

	function PreviewMytable(){
		var LODOP=getLodop();


		print_text()


		// LODOP.SET_PRINT_STYLEA(0,"Horient",1);
		// LODOP.ADD_PRINT_TEXT(3,34,196,20,"总页眉：《两个发货单的演示》");
		// LODOP.SET_PRINT_STYLEA(0,"ItemType",1);
		// LODOP.PREVIEW();
		// LODOP.PRINT_SETUP();//打印维护
		LODOP.PRINT_DESIGN();//打印设计
	};

	 function print_text(){


		 table_1()

		 LODOP.ADD_PRINT_TEXT(68,50,167,28,"{$year}年{$month}月{$day}日");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.ADD_PRINT_TEXT(68,600,41,25,"NO:");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.SET_PRINT_STYLEA(0,"FontColor","#FF0000");
		 LODOP.ADD_PRINT_TEXT(68,646,115,25,"2020082601");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.ADD_PRINT_TEXT(138,9,59,32,"持证人");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
		 LODOP.ADD_PRINT_TEXT(128,200,27,48,"墓\r\n位");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.ADD_PRINT_TEXT(121,245,77,32,"具体位置");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.ADD_PRINT_TEXT(171,244,75,32,"墓位编号");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.ADD_PRINT_TEXT(124,512,32,68,"安葬人");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.ADD_PRINT_TEXT(259,23,26,50,"落   \r\n葬");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.ADD_PRINT_TEXT(369,14,47,40,"交易时间");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
		 LODOP.ADD_PRINT_TEXT(231,494,68,28,"火化单");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
		 LODOP.ADD_PRINT_TEXT(223,565,53,46,"死亡证明");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.ADD_PRINT_TEXT(222,631,51,51,"碑文情况");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.ADD_PRINT_TEXT(232,71,56,29,"日期");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
		 LODOP.ADD_PRINT_TEXT(293,73,53,25,"时间");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
		 LODOP.ADD_PRINT_TEXT(229,274,192,31,"家庭联系电话");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
		 LODOP.ADD_PRINT_TEXT(372,257,67,29,"接单人");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.SET_PRINT_STYLEA(0,"ItemType",1);
		 LODOP.SET_PRINT_STYLEA(0,"LinkedItem",1);
		 LODOP.ADD_PRINT_TEXT(137,69,118,44,"杨");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
		 LODOP.ADD_PRINT_TEXT(107,321,178,49,"礼乐区夕照园生态墓区");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.ADD_PRINT_TEXT(174,325,158,32,"ST-01-002");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.ADD_PRINT_TEXT(108,571,154,29," {$burid[0]}");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.ADD_PRINT_TEXT(147,570,154,26," {$burid[1]}");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.ADD_PRINT_TEXT(182,571,142,28," ");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.ADD_PRINT_TEXT(368,80,147,29,"2020年08月26日");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
		 LODOP.ADD_PRINT_TEXT(292,287,180,29,"1599999999");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
		 LODOP.ADD_PRINT_TEXT(229,135,102,31,"2020-08-16");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
		 LODOP.ADD_PRINT_TEXT(290,135,102,29,"15:16");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
		 LODOP.ADD_PRINT_TEXT(370,346,145,35,"新加文本47");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
		 LODOP.ADD_PRINT_TEXT(352,525,151,28,"墓穴");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
		 LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
		 LODOP.ADD_PRINT_TEXT(353,688,87,30,"墓穴状态");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",12);

		 LODOP.ADD_PRINT_TEXT(391,506,47,26,"单穴");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",13);
		 LODOP.ADD_PRINT_TEXT(392,572,45,30,"双穴");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",13);
		 LODOP.ADD_PRINT_TEXT(390,633,46,28,"三穴");
		 LODOP.SET_PRINT_STYLEA(0,"FontSize",13);

	 }

	 function table_1(){
		 LODOP.ADD_PRINT_LINE(103,0,102,766,0,1);
		 LODOP.ADD_PRINT_LINE(212,0,211,766,0,1);
		 LODOP.ADD_PRINT_LINE(278,74,277,766,0,1);
		 LODOP.ADD_PRINT_LINE(342,0,341,766,0,1);
		 LODOP.ADD_PRINT_LINE(428,0,427,766,0,1);
		 LODOP.ADD_PRINT_LINE(103,6,426,7,0,1);
		 LODOP.ADD_PRINT_LINE(427,765,101,766,0,1);
		 LODOP.ADD_PRINT_LINE(178,557,177,764,0,1);
		 LODOP.ADD_PRINT_LINE(141,558,142,763,0,1);
		 LODOP.ADD_PRINT_LINE(424,70,103,71,0,1);
		 LODOP.ADD_PRINT_LINE(387,502,386,764,0,1);
		 LODOP.ADD_PRINT_LINE(342,134,212,135,0,1);
		 LODOP.ADD_PRINT_LINE(104,191,212,192,0,1);
		 LODOP.ADD_PRINT_LINE(103,241,427,242,0,1);
		 LODOP.ADD_PRINT_LINE(158,243,159,500,0,1);
		 LODOP.ADD_PRINT_LINE(212,318,103,319,0,1);
		 LODOP.ADD_PRINT_LINE(103,500,425,501,0,1);
		 LODOP.ADD_PRINT_LINE(104,555,341,556,0,1);
		 LODOP.ADD_PRINT_LINE(343,621,210,622,0,1);
		 LODOP.ADD_PRINT_LINE(211,686,428,687,0,1);
		 LODOP.ADD_PRINT_LINE(341,343,427,344,0,1);
		 LODOP.ADD_PRINT_LINE(386,562,428,563,0,1);
		 LODOP.ADD_PRINT_LINE(387,626,429,627,0,1);
	 }


	//打印
	$('.print').click(function () {
		document.getElementById("button_form").style.display="none";
		var printData =window.document.body.innerHTML; //获得 div 里的所有 html 数据
		document.body.innerHTML =  printData ;
		window.print();
		//打印结束后，放开隐藏内容
		document.getElementById("button_form").style.display="block";
		window.close();

	})
</script>